{
  enable = true;
  preserveAt."/nix/persistent" = {
    directories = [
      "/var/lib"
      "/var/log"
      "/etc/secureboot"
      {
        directory = config.users.users.root.home;
        mode = config.users.users.root.homeMode;
      }
      {
        directory = config.users.users.${userName}.home;
        mode = config.users.users.${userName}.homeMode;
        group = config.users.users.${userName}.group;
        user = userName;
      }
      {
        directory = "/etc/daed";
        mode = "0750";
      }
    ];
    files = [
      {
        file = "/etc/machine-id";
        inInitrd = true;
      }
    ];
  };
}
